package com.woniuxy.book.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author li
 * @since 2024年2月09日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("order_item")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "item_id", type = IdType.AUTO)
    private Integer itemId;

    /**
     * 图书ID
     */
    @TableField("book_id")
    private Integer bookId;

    /**
     * 图书名字
     */
    @TableField("book_name")
    private String bookName;

    /**
     * 单价
     */
    @TableField("book_price")
    private BigDecimal bookPrice;

    /**
     * 图片
     */
    @TableField("book_image")
    private String bookImage;

    /**
     * 图书数量
     */
    @TableField("book_cont")
    private Integer bookCont;

    /**
     * 订单编号
     */
    @TableField("order_id")
    private String orderId;


}
